<h2>
		1 燃尽图	</h2>
<div class='container text-center bd-0'>
  <div class='clearfix'>
    <div class='actions r'>
            <div class='input-group l w-100px'>
				<select name='interval' id='interval' class='form-control'>
				<option value='1'>间隔1天</option>
				<option value='1'>间隔2天</option>
				<option value='1' selected='selected'>间隔3天</option>
				<option value='1'>间隔4天</option>
				<option value='1'>间隔5天</option>
				<option value='1'>间隔6天</option>
				<option value='1'>间隔7天</option>
				<option value='1'>间隔8天</option>
				</select>
			  </div>
            <div class='input-group l w-100px'>
			<span class='input-infobtn'><a href='#' target='' class='btn'>显示周末</a></span>
			<span class='input-group-btn'><a href='#' target='hiddenwin' title='更新燃尽图' class='btn btn-primary' id='computeBurn'>更新</a></span>
		</div>
    </div>
  </div>
  <div class='canvas-wrapper'><div class='chart-canvas'><canvas id='burnChart' width='800' height='400' data-bezier-curve='false' data-responsive='true'></canvas></div></div>
</div>
<script>
function initBurnChar()
{
    var data = 
    {
        labels: ["2\/9","7\/9","10\/9","15\/9","18\/9","23\/9","28\/9","1\/10","6\/10","9\/10","14\/10","19\/10","22\/10","27\/10","30\/10","4\/11","9\/11","12\/11","17\/11","20\/11","25\/11","30\/11","3\/12"],
        datasets: [
        {
            label: "基准线",
            color: "#CCC",
            fillColor: "rgba(0,0,0,0)",
            showTooltips: false,
            data: [5.94,5.67,5.4,5.13,4.86,4.59,4.32,4.05,3.78,3.51,3.24,2.97,2.7,2.43,2.16,1.89,1.62,1.35,1.08,0.81,0.54,0.27,0]        },
        {
            label: "剩余",
            color: "#0033CC",
            data: [6,25,25]        }]
    };

    var burnChart = $("#burnChart").lineChart(data, {animation: !($.zui.browser && $.zui.browser.ie === 8)});
}
</script>
<script>

/**
 * Compute the end date for project.
 * 
 * @param  int    $delta 
 * @access public
 * @return void
 */

/* Auto compute the work days. */
$(function()
{
    initBurnChar();

    $('#burnTab').addClass('active');

    $('#interval').change(function()
    {
        location.href = createLink('project', 'burn', 'projectID=' + projectID + '&type=' + type + '&interval=' + $(this).val());
    });
})

</script>
		<h3>
		组件包	</h3>
	<pre class="prettyprint linenums"><span class="Huialert-danger">以上组件依赖burndownChart包</span></pre>
